package cn.youfule.dp.prototype;

import java.util.Arrays;

public class Resume implements Cloneable {

	private int age;
	private String[] hobby;

	@Override
	public String toString() {
		return "Resume [age=" + age + ", hobby=" + Arrays.toString(hobby) + "]";
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		Resume c = (Resume) super.clone();
		c.setHobby(c.getHobby().clone());
		return c;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String[] getHobby() {
		return hobby;
	}

	public void setHobby(String[] hobby) {
		this.hobby = hobby;
	}
	
	
}
